/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.admin.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import org.apache.ibatis.annotations.Param;
import org.springblade.modules.admin.entity.MaintainContractType;
import org.springblade.modules.admin.vo.MaintainContractTypeVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;

/**
 * 合同保养类型 Mapper 接口
 *
 * @author ysq
 * @since 2024-03-08
 */
public interface MaintainContractTypeMapper extends BaseMapper<MaintainContractType> {

	/**
	 * 自定义分页
	 *
	 * @param page
	 * @param maintainContractType
	 * @return
	 */
	List<MaintainContractTypeVO> selectMaintainContractTypePage(IPage page, @Param("maintainContractType") MaintainContractTypeVO maintainContractType);

	/**
	 * 获取租户的初始化数据
	 * @param tenantId
	 * @return 数据集
	 */
	@InterceptorIgnore(tenantLine="on")
    List<MaintainContractType> list(@Param("tenantId") String tenantId,String name);


	/**
	 * 获取保养类型，不用过滤删除
	 * @param id 保养类型id
	 * @return 数据集
	 */
    MaintainContractType getOneNotDelete(Long id);
}
